package com.rzjm.exercise.common.utils;


import com.baomidou.mybatisplus.annotation.TableName;

public abstract class PersistableHelper {
	public static <T> String getTableName(Class<T> clazz) {
		if (clazz != null && clazz.isAnnotationPresent(TableName.class)) {
			return clazz.getAnnotation(TableName.class).value();
		}
		
		return null;
	}
}
